import React from "react";
import { Switch, Route } from "react-router-dom";
import Index from "./pages/Index";
import NotExist from "./pages/NotExist";

export default function Router() {
  return (
    <Switch>
      <Route path="/" exact component={Index} />
      <Route path="/index" exact component={Index} />
      {/*ts未配置*/}
      {/*<Route path={"/TsTestComponent"} component={TestComponent} />*/}
      <Route component={NotExist} />
    </Switch>
  );
}
